package com.dapeis.exception;

/**
 * 错误码 Title:Code.java Code Description:
 * 
 * @author yuanyong
 * @date 2017年4月17日 下午4:58:57 Email: hzyuanyong@126.com
 *
 */
public class Code {

    /** 未登录 */
    public static final int NO_LOGIN = 999;
    /** 访问频率限制 */
    public static final int REQUEST_FREQUENCY_LIMIT = 998;
    /** 数据库操作失败 */
    public static final int SQL_EXCEPTION = 997;
    /** 签名验证不通过 */
    public static final int API_SIGN_EXCEPTION = 994;
    /** 数据未找到 */
    public static final int ENTITY_NOTFOUND_EXCEPTION = 993;
    /** 无效非法的参数 */
    public static final int INVAILD_PARAM_EXCEPTION = 992;
    /** token验证错误 */
    public static final int TOKEN_ILLEGAL_EXCEPTION = 990;
    /** 验证码不正确 */
    public static final int INVALID_VERIFY_CODE = 989;
    /** 系统提示 */
    public static final int SYS_TIP = 988;
    /** 访问受限制 */
    public static final int VISIT_LIMIT = 987;
    /** 系统异常 */
    public static final int SYS = 986;

    // ~================用户模块Start==========================

    /** 用户已经被禁用 */
    public static final int U_STATE_COLSE = 10002;
    /** 找不到用户 */
    public static final int U_NOT_FOUND = 10003;
    /** 不存在的用户手机 */
    public static final int U_CONTACT_NOT_FOUND = 10004;
    /** 只能用户操作的接口 */
    public static final int U_LOGIN_ALLOW_TO_USER = 10006;

    /** 存在的手机号 */
    public static final int U_EXIST_CONTACT = 10007;

    /**
     * 密码错误
     */
    public static final int U_PASSWORD_ERROR_EXCEPTION = 10013;

    /**
     * 用户来源存在
     */
    public static final int U_USER_SOURCE_ALREADY_EXIST = 10014;

    // ~================用户模块End==========================

    // ~=================版本模块Start========================
    /** 暂无版本信息 */
    public static final int VERSION_TAG_HAS_NO_LATEST = 13001;
    /** 暂无过低 */
    public static final int VERSION_TO_LOW = 13002;
    // ~=================订单模块End========================
    public static final int ORDER_NOT_USER_SELF = 15001;

    public static final int ORDER_INVAILD_STATUS_EXCEPTION = 15002;

    public static final int ORDER_EXISTCOLLOCATION = 15003; // 订单被抢

    /** 状态非法 */
    public static final int ORDER_ILLEGAL_STATEU = 15002;
    // ~=================短信模块Start========================
    /** 短信发送失败 */
    public static final int SMS_SEND_FAILD = 14001;
    // ~=================求购采购模块End========================

    public static final int USER_EXCLUDE_SELF_GOODS = 16001;

    // ===================微信模块=================================
    public static final int WECHAT_NO_OPENID = 170001;

    // ===================通用模块===============================
    public static final int GLOBAL_DISABLE = 18000;

    /** 腾讯云通信签名校验失败 */
    public static final int TIM_SINGATURE_CHECK_FAIL = 18001;
    /** 腾讯云通信生成签名失败 */
    public static final int TIM_SINGATURE__FAIL = 18002;
    /** 腾讯云通信异常 */
    public static final int TIM_SERVICE__FAIL = 18003;


    // ===================方案(时尚圈)模块===============================
    public static final int USER_EXITS_AGREE = 14801; //用户已经点赞
    /**
     * 资金明细
     */
    public static final int MONEY_LOG_EXCEPITON = 14901;
    
    public static final int No_AUTHORITY = 14902;
    
}
